﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WriteBugs.Library.Model
{
    /// <summary>
    /// 拖动的信息参数
    /// </summary>
    public class DragInfo
    {
        /// <summary>
        /// 拖动的类型
        /// </summary>
        public DragType DragType { get; set; } = DragType.SourceToTarget;

        /// <summary>
        /// From：源项目
        /// </summary>
        public Excerpt SourceExcerpt { get; set; }

        /// <summary>
        /// To：目标文件夹
        /// </summary>
        public Excerpt TargetExcerpt { get; set; }

        /// <summary>
        /// 移动到的位置
        /// </summary>
        public int MoveToIndex { get; set; }
    }

    /// <summary>
    /// 拖动的类型
    /// </summary>
    public enum DragType
    {
        /// <summary>
        /// 移动到目标文件夹
        /// </summary>
        SourceToTarget = 0,

        /// <summary>
        /// 移动位置
        /// </summary>
        SourceMove = 1,
    }
}
